package top.hepingan.java.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2025-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("red_packet_receive")
@ApiModel(value="RedPacketReceive对象", description="")
public class RedPacketReceive implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "领取记录ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "关联红包ID")
    @TableField("red_packet_id")
    private Long redPacketId;

    @ApiModelProperty(value = "领取用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "领取金额")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty(value = "领取时间")
    @TableField("receive_time")
    private LocalDateTime receiveTime;

    @ApiModelProperty(value = "状态：0有效，1作废")
    @TableField("status")
    private Integer status;


}
